/*
 Navicat Premium Data Transfer

 Source Server         : 192.168.0.232SQL2016
 Source Server Type    : SQL Server
 Source Server Version : 13001601
 Source Host           : 192.168.0.232\SQL2016:1433
 Source Catalog        : Test
 Source Schema         : dbo

 Target Server Type    : SQL Server
 Target Server Version : 13001601
 File Encoding         : 65001

 Date: 06/12/2024 10:02:06
*/


-- ----------------------------
-- Table structure for User_Role
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[User_Role]') AND type IN ('U'))
	DROP TABLE [dbo].[User_Role]
GO

CREATE TABLE [dbo].[User_Role] (
  [F_Id] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [F_UserId] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [F_RoleId] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [F_CreateTime] datetime  NULL,
  [F_CreateUser] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [F_LastModifyTime] datetime  NULL,
  [F_LastModifyUser] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [F_DeleteTime] datetime  NULL,
  [F_DeleteUser] nvarchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [F_DeleteMark] int  NULL
)
GO

ALTER TABLE [dbo].[User_Role] SET (LOCK_ESCALATION = TABLE)
GO

EXEC sp_addextendedproperty
'MS_Description', N'主键',
'SCHEMA', N'dbo',
'TABLE', N'User_Role',
'COLUMN', N'F_Id'
GO

EXEC sp_addextendedproperty
'MS_Description', N'用户id',
'SCHEMA', N'dbo',
'TABLE', N'User_Role',
'COLUMN', N'F_UserId'
GO

EXEC sp_addextendedproperty
'MS_Description', N'角色id',
'SCHEMA', N'dbo',
'TABLE', N'User_Role',
'COLUMN', N'F_RoleId'
GO

EXEC sp_addextendedproperty
'MS_Description', N'创建时间',
'SCHEMA', N'dbo',
'TABLE', N'User_Role',
'COLUMN', N'F_CreateTime'
GO

EXEC sp_addextendedproperty
'MS_Description', N'创建人',
'SCHEMA', N'dbo',
'TABLE', N'User_Role',
'COLUMN', N'F_CreateUser'
GO

EXEC sp_addextendedproperty
'MS_Description', N'修改时间',
'SCHEMA', N'dbo',
'TABLE', N'User_Role',
'COLUMN', N'F_LastModifyTime'
GO

EXEC sp_addextendedproperty
'MS_Description', N'修改人',
'SCHEMA', N'dbo',
'TABLE', N'User_Role',
'COLUMN', N'F_LastModifyUser'
GO

EXEC sp_addextendedproperty
'MS_Description', N'删除时间',
'SCHEMA', N'dbo',
'TABLE', N'User_Role',
'COLUMN', N'F_DeleteTime'
GO

EXEC sp_addextendedproperty
'MS_Description', N'删除人',
'SCHEMA', N'dbo',
'TABLE', N'User_Role',
'COLUMN', N'F_DeleteUser'
GO

EXEC sp_addextendedproperty
'MS_Description', N'是否删除',
'SCHEMA', N'dbo',
'TABLE', N'User_Role',
'COLUMN', N'F_DeleteMark'
GO


-- ----------------------------
-- Records of [User_Role]
-- ----------------------------
INSERT INTO [dbo].[User_Role]  VALUES (N'5ab135f3-454a-458d-83b5-1b09b360b82d', N'1', N'1', N'2024-06-07 15:18:43.060', N'admin', N'1900-01-01 00:00:00.000', NULL, N'1900-01-01 00:00:00.000', NULL, NULL)
GO

INSERT INTO [dbo].[User_Role]  VALUES (N'8eb0bd47-6f1c-4f69-a819-4c0fabf4b178', N'1', N'3', N'2024-06-07 15:18:43.060', N'admin', N'1900-01-01 00:00:00.000', NULL, N'1900-01-01 00:00:00.000', NULL, NULL)
GO

INSERT INTO [dbo].[User_Role]  VALUES (N'9b32e92a-c4ac-426c-94ad-af3763d8d862', N'1', N'2', N'2024-06-07 15:18:43.060', N'admin', N'1900-01-01 00:00:00.000', NULL, N'1900-01-01 00:00:00.000', NULL, NULL)
GO

INSERT INTO [dbo].[User_Role]  VALUES (N'f59511e5-3922-4d61-828a-d9c7fb6fbf03', N'6bc3ec71-8373-42af-a899-b8a944b7bd5c', N'1', N'2024-06-07 15:19:43.197', N'admin', N'1900-01-01 00:00:00.000', NULL, N'1900-01-01 00:00:00.000', NULL, NULL)
GO


-- ----------------------------
-- Primary Key structure for table User_Role
-- ----------------------------
ALTER TABLE [dbo].[User_Role] ADD CONSTRAINT [PK__User_Rol__2C6EC723E38AB54E] PRIMARY KEY CLUSTERED ([F_Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO

